//
//  BaseViewController.m
//  VmiSJ
//
//  Created by 汪的一声就哭了！ on 2016/12/29.
//  Copyright © 2016年 汪的一声就哭了！. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //改变Bar背景颜色
//    self.navigationController.navigationBar.barTintColor = Color;
    if (WIDTH < 330) {
        _fontSize = 15;
    }
    else if (WIDTH < 380) {
        _fontSize = 16;
    }
    else {
        _fontSize = 17;
    }
    UIFont *titleFont;
    if (WIDTH <380) {
        titleFont = [UIFont systemFontOfSize:self.fontSize+2];
    }
    else {
        titleFont = [UIFont systemFontOfSize:self.fontSize+1];
    }
    
    //改变Bar文字样式
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor colorWithRed:105.0/255.0 green:112.0/255.0 blue:111.0/255.0 alpha:1],NSFontAttributeName:titleFont}];
    self.navigationController.navigationBar.translucent = NO;
    //改变tabbar按钮颜色
    [self.navigationController.navigationBar setTintColor:Color];
    [PTSProgressHUD setBgColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.7]];
    [PTSProgressHUD setGifImageName:@"123.gif"];
    [PTSProgressHUD setTitleStr:@"加载中..."];
    [PTSProgressHUD setTitleColor:[UIColor whiteColor]];
    self.view.backgroundColor = BackColor;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
